package com.project.service.impl;

import com.project.bean.ManBean;
import com.project.mapper.IManMapper;
import com.project.service.IManService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManServiceImpl implements IManService {
    private IManMapper mapper;
    @Override
    public void add(ManBean man) {
        mapper.add(man);
    }

    @Override
    public List<ManBean> findAll() {
        return mapper.findAll();
    }
}
